<#import "../baseftl/page.ftl" as comm />
<#assign security=JspTaglibs["http://www.springframework.org/security/tags"] /> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>管理区域</title>
<link href="${base}/css/left.css" rel="stylesheet" type="text/css">
</head>

<body>
<div class="messgin">
    <div class="biaoti">
	    <div class="biaoti_ziti">
	        	用户管理
		 </div>	 
    </div>
	<div class="sot1">
	<div class="sot1_1">
	<!--<img onclick="location.href='${base}/system/role.action'" src="${base}/css/images/jiaose.png" />-->
	</div>
   <div class="sot1_2">
		<!--<img src="${base}/css/images/quanxi.png" onclick="location.href='${base}/system/authority.action'"/>-->
	</div>
	 <div class="sot1_2">
		<img src="${base}/css/images/zengjia.png"  onclick="location='${base}/system/user/input.shtml'"/>
	</div>
    <div class="sot1_2">
		<!--<img src="${base}/css/images/daili.png" onclick="location='${base}/system/user!addAgentUser.action'"/>-->
	</div>
	<div class="ss1">
	   <#--<div class="sot1_3">
	    	搜索
	    	<form action="${base}/system/user!queryUserAdmin.action" method="post">
		   		<div style="padding-top:7px; padding-left:5px; float:left;"><input name="userName" size="20" onclick="this.select()" value="${userName?default("手机号或姓名")}" class="RegisterText1"/></div>
           		<div style="padding-left:3px; padding-top:10px; float:left;">  <input type="submit" class="ssan"  value=""/></div>
          	</form>
	    </div>-->
	</div>
	</div>
	<div class="leir">
	  <div class="biaoge">
	  <div style="margin:5px;"><b><@s.actionmessage /></b></div>
	  <#if page.result.size() != 0>
	  <table width="660" cellspacing="1" cellpadding="4" border="0" bgcolor="#c1c8d2">
		
      <tbody>
      <tr height="40" style="font-size:14px; text-align:center; background-color:#e1e1e1;">

      <td width="23%"><a href="${base}/system/user/list/orderBy/username/order/
		<#if page.getOrder()?default("")=="desc">asc<#else>desc</#if>.shtml">
		<b>登录名</b></a></td>

      <td width="18%">姓名</td>

      <td width="18%">角色</td>
	  
	  <td width="33%">操作</td>

    </tr>
    	<#list page.result as list>
	    <tr bgcolor="#FFFFFF" onmouseover="this.style.backgroundColor='#fbfbfb'" onmouseout="this.style.backgroundColor=''" style=" text-align:center; font-size:13px;">


	      <td>${list.loginName?default("")}&nbsp;</td>

	      <td>${list.name?default("")}&nbsp;</td>

	      <td>${list.getRoleNames()?default("")}&nbsp;</td>
		  
		  <td>
		  <div style="padding-left:13px;">
		  <span class="xiugai"></span>
		  <span style="float:left; padding-top:4px; padding-left:5px;">
		  	<a href="${base}/system/user/input/${list.id?default("")}.shtml">修改</a>&nbsp;
		  </span>
		  <span class="shanchu"></span>
		  <span style="float:left; padding-top:4px; padding-left:5px;">
			 <a href="${base}/system/user/delete/${list.id?default("")}.shtml">删除</a>&nbsp;
		  </span>
		  </div>
		  </td>
	     </tr>
		 </#list>
  </tbody></table>
	<div class="pageList" style="text-align:center;width:600px;"><@comm.pages/>   </div>
  <#else>
  	<div align="center"><strong>未查询到任何用户信息</strong></div>
  </#if>
  </div>
	</div>
	<div class="kongge"></div>
	<div class="left_di"></div>
  </div>

</table>
		

</body>
</html>